<?php

use Jialeo\LaravelSchemaExtend\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateLoanRequestFaildLogsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('loan_request_faild_logs', function (Blueprint $table) {
            $table->charset = 'utf8';
            $table->collation = 'utf8_general_ci';
            $table->comment = '授信申请失败记录表';
            $table->increments('id');
            $table->string('code')->comment('返回code');
            $table->string('message')->comment('错误信息');
            $table->string('outCreditId')->comment('流水号');
            $table->string('nfsp_user_id')->comment('新流用户id');
            $table->integer('amount')->comment('申请金额');
            $table->integer('period')->comment('期数');
            $table->string('deviceIP')->comment('设备ip');
            $table->string('deviceGPS')->comment('请求时的gps地址');
            $table->string('deviceType')->comment('设备类型');
            $table->string('device')->comment('设备型号');
            $table->string('deviceOS')->comment('设备系统号');
            $table->string('deviceMac')->comment('设备mac号');
            $table->string('deviceIMEI')->comment('设备imei号');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('loan_request_faild_logs');
    }
}
